home *** CD-ROM | disk | FTP | other *** search
/ Aminet 37 / Aminet 37 (2000)(Schatztruhe)[!][Jun 2000].iso / Aminet / dev / lang / sofa.lha / sofa / smalleiffel / lib_se / native_with_current.e < prev    next >
Text File  |  2000-03-25  |  2KB  |  77 lines

  1. --          This file is part of SmallEiffel The GNU Eiffel Compiler.
  2. --          Copyright (C) 1994-98 LORIA - UHP - CRIN - INRIA - FRANCE
  3. --            Dominique COLNET and Suzanne COLLIN - colnet@loria.fr
  4. --                       http://SmallEiffel.loria.fr
  5. -- SmallEiffel is  free  software;  you can  redistribute it and/or modify it
  6. -- under the terms of the GNU General Public License as published by the Free
  7. -- Software  Foundation;  either  version  2, or (at your option)  any  later
  8. -- version. SmallEiffel is distributed in the hope that it will be useful,but
  9. -- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  10. -- or  FITNESS FOR A PARTICULAR PURPOSE.   See the GNU General Public License
  11. -- for  more  details.  You  should  have  received a copy of the GNU General
  12. -- Public  License  along  with  SmallEiffel;  see the file COPYING.  If not,
  13. -- write to the  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  14. -- Boston, MA 02111-1307, USA.
  15. --
  16. class NATIVE_WITH_CURRENT
  17.  
  18. inherit NATIVE_C;
  19.  
  20. creation make
  21.  
  22. feature
  23.  
  24.    need_prototype: BOOLEAN is true;
  25.  
  26.    stupid_switch(name: STRING): BOOLEAN is
  27.       do
  28.          Result := true;
  29.       end;
  30.  
  31.    jvm_add_method_for_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  32.       do
  33.       end;
  34.  
  35.    jvm_define_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  36.       do
  37.          fe_c2jvm(rf8);
  38.       end;
  39.  
  40.    jvm_mapping_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  41.       do
  42.          fe_c2jvm(rf8);
  43.       end;
  44.  
  45.    jvm_add_method_for_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is
  46.       do
  47.       end;
  48.  
  49.    jvm_define_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is
  50.       do
  51.          fe_c2jvm(rf7);
  52.       end;
  53.  
  54.    jvm_mapping_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is
  55.       do
  56.          fe_c2jvm(rf7);
  57.       end;
  58.  
  59.    use_current(er: EXTERNAL_ROUTINE): BOOLEAN is
  60.       do
  61.          Result := true;
  62.       end;
  63.  
  64.    c_define_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  65.       do
  66.          standard_c_define_function(rf8, bcn, name);
  67.       end;
  68.  
  69.    c_define_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is      
  70.       do
  71.          standard_c_define_procedure(rf7, bcn, name);
  72.       end;
  73.  
  74. end -- NATIVE_WITH_CURRENT
  75.  
  76.  
  77.